<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <script src="/lib/jquery/1.9.1/jquery.js"></script>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <script src="/icheck-1.x/icheck.js"></script>
    <script src="/bootstrap-switch-master/dist/js/bootstrap-switch.js"></script>
    <link href="/bootstrap-switch-master/dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
    <link href="/icheck-1.x/skins/all.css" rel="stylesheet">
    <script src="/H-ui.admin/lib/ueditor/1.4.3/ueditor.config.js"></script>
    <script src="/H-ui.admin/lib/ueditor/1.4.3/ueditor.all.js"></script>
</head>
<body>
<div>
    <div style="margin: 25px auto 10px 25px">
        <a class="btn btn-primary add" href="{:url('add')}">添加商品</a>
        <a class="btn btn-primary create" href="{:url('create')}">快速添加商品</a>
    </div>
    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist" style="margin-left: 25px">
        <li role="presentation" class="active"><a href="#basic" aria-controls="home" role="tab" data-toggle="tab">基本</a></li>
        <li role="presentation"><a href="#option" aria-controls="profile" role="tab" data-toggle="tab">库存/价格</a></li>
        <li role="presentation"><a href="#param" aria-controls="messages" role="tab" data-toggle="tab">参数</a></li>
        <li role="presentation"><a href="#des" aria-controls="settings" role="tab" data-toggle="tab">详情</a></li>
        <li role="presentation"><a href="#buy" aria-controls="profile" role="tab" data-toggle="tab">购买权限</a></li>
        <li role="presentation"><a href="#sale" aria-controls="messages" role="tab" data-toggle="tab">营销</a></li>
        <li role="presentation"><a href="#discount" aria-controls="settings" role="tab" data-toggle="tab">会员折扣</a></li>
        <li role="presentation"><a href="#share" aria-controls="settings" role="tab" data-toggle="tab">分享关注</a></li>
        <li role="presentation"><a href="#notice" aria-controls="profile" role="tab" data-toggle="tab">卖家通知</a></li>
        <li role="presentation"><a href="#sell" aria-controls="messages" role="tab" data-toggle="tab">分销</a></li>
        <li role="presentation"><a href="#verify" aria-controls="settings" role="tab" data-toggle="tab">线下核销</a></li>
        <li role="presentation"><a href="#diyform" aria-controls="settings" role="tab" data-toggle="tab">自定义表单</a></li>
        <li role="presentation"><a href="#detaildiy" aria-controls="settings" role="tab" data-toggle="tab">店铺信息</a></li>
        <li role="presentation"><a href="#diypage" aria-controls="settings" role="tab" data-toggle="tab">自定义模板</a></li>
    </ul>

    <!-- Tab panes -->
    <div class="tab-content"  style="margin-left: 25px">
        <div role="tabpanel" class="tab-pane fade in active" id="basic">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>基本信息</h4></div>
                        <div class="form-group">
                            <label for="sort" class="col-sm-2 control-label">排序</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="sort" name="displayorder" placeholder="" value="">
                                <span class="help-block">数字越大，排名越靠前</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品名称</label>
                            <div class="col-sm-8">
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" name="advname" placeholder="" value="">
                                </div>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" name="q" placeholder="单位，如：个/件/包" value="">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">副标题</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" name="advname" placeholder="" value=""></textarea>
                                <span class="help-block">副标题的长度请控制在100字以内</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sort" class="col-sm-2 control-label">商品短标题</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="j" name="displayorder" placeholder="" value="">
                                <span class="help-block">商品短标题 用于快递打印,以及小型热敏打印机打印</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sort" class="col-sm-2 control-label">关键字</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="s" name="displayorder" placeholder="" value="">
                                <span class="help-block">商品关键字,能准确搜到商品的,比如 : 海尔电视|电视 之类的</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品类型</label>
                            <div class="col-sm-8">
                                <label class='radio-inline'>
                                    <input type='radio' name='enabled' value="" > 实体商品
                                </label>
                                <label class='radio-inline'>
                                    <input type='radio' name='enabled' value="" > 虚拟商品
                                </label>
                                <label class='radio-inline'>
                                    <input type='radio' name='enabled' value="" > 虚拟物品(卡密)
                                </label>
                                <label class='radio-inline'>
                                    <input type='radio' name='enabled' value="" > 批发商品
                                </label>
                                <label class='radio-inline'>
                                    <input type='radio' name='enabled' value="" > 记次/时商品
                                </label>
                                <span class="help-block">商品类型，商品保存后无法修改，请谨慎选择</span>
                            </div>
                        </div>
                        <div style="margin-left:25px; "><h4>商品信息</h4></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">预售设置</label>
                            <div class="col-sm-8">
                                <label class='radio-inline'>
                                    <input type='radio' name='enabled' value="1" > 是
                                </label>
                                <label class='radio-inline'>
                                    <input type='radio' name='enabled' value="0" > 否
                                </label>
                                <span class="help-block">提示：是否开启商品预售设置</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品分类</label>
                            <div class="dropdown col-sm-6">
                                <select class="form-control">
                                    <option>1</option>
                                    <option>2</option>
                                    <option>3</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品属性</label>
                            <label class="checkbox-inline">
                                <input type="checkbox" />推荐
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" />新品
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" />热卖
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" />包邮
f                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" />不参与会员折扣
                            </label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品价格</label>
                            <div class="col-sm-2">
                                <div class="input-group col-sm-12">
                                    <input type="text" class="form-control" id="h" name="displayorder" placeholder="" value="">
                                    <div class="input-group-addon">元</div>
                                </div>
                                <span class="help-block">尽量填写完整，有助于于商品销售的数据分析</span>
                            </div>
                            <div class="col-sm-3">
                                <label class="col-sm-6 control-label">原价</label>
                                <div class="input-group col-sm-6">
                                    <input type="text" class="form-control" id="g" name="displayorder" placeholder="" value="">
                                    <div class="input-group-addon">元</div>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <label class="col-sm-6 control-label">成本</label>
                                <div class="input-group col-sm-6">
                                    <input type="text" class="form-control" id="a" name="displayorder" placeholder="" value="">
                                    <div class="input-group-addon">元</div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品图片</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" placeholder="批量上传图片" name="link" value="">
                                <span class="help-block"> &nbsp;第一张为缩略图，建议为正方型图片，其他为详情页面图片，尺寸建议宽度为640，并保持图片大小一致
您可以拖动图片改变其显示顺序</span>
                                <input type="checkbox">详情显示首图
                            </div>
                            <div class="col-sm-2">
                                <a class="btn btn-default" href="#" role="button">选择图片</a>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">首图视频</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" placeholder="请选择视频" name="link" value="">
                                <span class="help-block">设置后商品详情首图默认显示视频，目前仅支持小程序</span>
                            </div>
                            <div class="col-sm-2">
                                <a class="btn btn-default" href="#" role="button">选择链接</a>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">已出售数</label>
                            <div class="col-sm-6">
                                <div class="input-group col-sm-12">
                                    <input type="text" class="form-control" name="" placeholder="" value="">
                                    <div class="input-group-addon">件</div>
                                </div>
                                <span class="help-block">物品虚拟出售数，会员下单此数据就增加, 无论是否支付</span>
                                <input type="checkbox">显示销量
                            </div>
                        </div>
                        <div style="margin-left:25px; "><h4>商品属性</h4></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">单品满件包邮</label>
                            <div class="col-sm-8">
                                <div class="col-sm-12">
                                    <div class="input-group col-sm-6">
                                        <div class="input-group-addon">满</div>
                                        <input type="text" class="form-control" name="" placeholder="" value="">
                                        <div class="input-group-addon">件</div>
                                    </div>
                                    <span class="help-block">如果设置0或空，则不支持满件包邮</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">单品满额包邮</label>
                            <div class="col-sm-8">
                                <div class="col-sm-12">
                                    <div class="input-group col-sm-6">
                                        <div class="input-group-addon">满</div>
                                        <input type="text" class="form-control" name="" placeholder="" value="">
                                        <div class="input-group-addon">件</div>
                                    </div>
                                    <span class="help-block">如果设置0或空，则不支持满件包邮</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">不参与单品包邮地区</label>
                            <div class="col-sm-8">
                                <button class="btn btn-default">添加不参与单品包邮地区</button>
                                <span class="help-block">如果设置0或空，则不支持满件包邮</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">运费设置</label>
                            <div class="col-sm-6">
                                <input type="radio" class="col-sm-4" name="model"/>运费模板
                                <div class="dropdown col-sm-6" style="float:right">
                                    <select class="form-control">
                                        <option>1</option>
                                        <option>2</option>
                                        <option>1</option>
                                        <option>2</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-6">
                                <input type="radio" class="col-sm-4" name="model"/>统一邮费
                                <div class="col-sm-6" style="float:right">
                                    <div class="input-group">
                                        <input type="text" class="form-control"/>
                                        <div class="input-group-addon">元</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">所在地</label>
                            <div class="col-sm-6">
                                <div class="col-sm-6">
                                    <div class="dropdown">
                                        <select class="form-control">
                                            <option selected>请选择省份</option>
                                            <option>2</option>
                                            <option>1</option>
                                            <option>2</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="dropdown">
                                        <select class="form-control">
                                            <option selected>请选择城市</option>
                                            <option>2</option>
                                            <option>1</option>
                                            <option>2</option>
                                        </select>
                                    </div>
                                </div>
                                <span class="help-block" style="margin-left: 12px;">商品所在地，显示在详情页面，如果不选择，则显示商城所在地</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">支持收银台</label>
                            <div class="col-sm-8">
                                <input type="checkbox" >支持
                                <span class="help-block">上架或者不上架,收银台都能查到!</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">货到付款</label>
                            <div class="col-sm-8">
                                <input type="checkbox" >支持
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">发票</label>
                            <div class="col-sm-8">
                                <input type="checkbox" >支持
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">标签</label>
                            <div class="col-sm-8">
                                <label class="checkbox-inline">
                                    <input type="checkbox" >正品保障
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" >7天无理由退换
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" >保修
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">自定义标签</label>
                            <div class="col-sm-8">
                                <div class=" col-sm-8">
                                    <input type="text" class="form-control">
                                </div>
                                <div class=" col-sm-4">
                                    <button class="btn btn-primary">选择标签</button>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">上架</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio" name="shangjia"/>否
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="shangjia"/>上架
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="shangjia"/>赠品上架
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">是否选择上架时间</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio" name="shangjia"/>是
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="shangjia"/>否
                                </label>
                                <span class="help-block">商品在选择时间内自动上架，过期自动下架</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">是否支持退换货</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio" name="shangjia"/>是
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="shangjia"/>否
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">确定收货时间</label>
                            <div class="col-sm-8">
                                <div class="input-group">
                                    <div class="input-group-addon">发货后</div>
                                    <input type="number" class="form-control"/>
                                    <div class="input-group-addon">天</div>
                                </div>
                                <span class="help-block">0读取系统设置 -1为不自动收货</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="option">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>库存</h4></div>
                        <div class="form-group row">
                            <label class="col-sm-2 control-label">编码</label>
                            <div class="col-sm-8">
                                <input type="text" class="col-sm-5">
                                <label class="col-sm-2 control-label">条码</label>
                                <input type="text" class="col-sm-5">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-2 control-label">重量</label>
                            <div class="col-sm-6">
                                <div class="input-group">
                                    <input type="text" class="form-control" />
                                    <div class="input-group-addon">克</div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-2 control-label">库存</label>
                            <div class="col-sm-8">
                                <input type="text" class="col-sm-6" />
                                <div class="checkbox-inline">
                                    <input type="checkbox" />显示库存
                                </div>
                                <span class="help-block">商品的剩余数量, 如启用多规格或为虚拟卡密产品，则此处设置无效.</span>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-8">
                                <div class="radio-inline">
                                    <input type="radio" name="stock" />拍下减库存
                                </div>
                                <div class="radio-inline" name="stock">
                                    <input type="radio" name="stock" />付款减库存
                                </div>
                                <div class="radio-inline">
                                    <input type="radio" name="stock" />永不减库存
                                </div>
                            </div>
                        </div>

                        <div style="margin-left:25px; "><h4>规格</h4></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-8">
                                <div class="checkbox-inline">
                                    <input type="checkbox"/>启用商品规格
                                </div>
                                <span class="help-block">启用商品规格后，商品的价格及库存以商品规格为准,库存设置为0则会到”已售罄“中，手机也不会显示, -1为不限制</span>
                            </div>

                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="param">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>参数</h4></div>
                        <div class="form-group param">
                            <label class="control-label col-sm-2"></label>
                            <label class="control-label col-sm-2">参数名称</label>
                            <label class="control-label col-sm-2 col-sm-offset-2">参数值 拖动行可进行排序</label>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-6  col-sm-offset-1">
                                <button type="button" class="btn btn-default addParam"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span>添加参数</button>
                            </div>

                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="des">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div class="form-group">
                            <label class="control-label col-sm-2">商品详情</label>
                            <div class="col-sm-8">
                                <div id="editor1" type="text/plain" style="width:100%;height:200px;"></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">购买后可见</label>
                            <div class="col-sm-8">
                                <div id="sw-content">
                                    <input type="checkbox" class="make-switch" checked data-on-color="primary" data-off-color="primary">开启后购买过的商品才会显示
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-8 editor2">
                                <div id="editor2" type="text/plain" style="width:100%;height:200px;"></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="buy">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>购买权限</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">单次最多购买</label>
                            <div class="col-sm-5">
                                <div class="input-group">
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">件</div>
                                </div>
                                <span class="help-block">用户单次购买此商品数量限制</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">单次最低购买</label>
                            <div class="col-sm-5">
                                <div class="input-group">
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">件</div>
                                </div>
                                <span class="help-block">用户单次必须最少购买此商品数量限制</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">最多购买</label>
                            <div class="col-sm-5">
                                <div class="input-group">
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">件</div>
                                </div>
                                <span class="help-block">用户购买过的此商品数量限制</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">会员等级浏览权限</label>
                            <div class="col-sm-5">
                                <select  class="form-control">
                                    <option selected>1</option>
                                    <option>2</option>
                                    <option>3</option>
                                </select>
                                <span class="help-block">不设置默认全部会员等级</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">会员等级购买权限</label>
                            <div class="col-sm-5">
                                <select  class="form-control">
                                    <option selected>1</option>
                                    <option>2</option>
                                    <option>3</option>
                                </select>
                                <span class="help-block">不设置默认全部会员等级</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">会员组浏览权限</label>
                            <div class="col-sm-5">
                                <select  class="form-control">
                                    <option selected>1</option>
                                    <option>2</option>
                                    <option>3</option>
                                </select>
                                <span class="help-block">不设置默认全部会员等级</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">会员组购买权限</label>
                            <div class="col-sm-5">
                                <select  class="form-control">
                                    <option selected>1</option>
                                    <option>2</option>
                                    <option>3</option>
                                </select>
                                <span class="help-block">不设置默认全部会员等级</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="sale">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>促销方式</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">促销方式</label>
                            <div class="col-sm-8">
                                <div class="checkbox-inline">
                                    <input type="checkbox">促销
                                </div>
                                <div class="checkbox-inline">
                                    <input type="checkbox">限时卖
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:25px; "><h4>满返设置</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">积分赠送</label>
                            <div class="col-sm-5">
                                <div class="input-group">
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">分</div>
                                </div>
                                <span class="help-block">会员购物赠送的积分, 如果不填写或填写0，则默认为不赠送积分，如果带%则为按成交价格的比例计算积分</span>
                                <span class="help-block">如: 购买2件，设置10 积分, 不管成交价格是多少， 则购买后获得20积分</span>
                                <span class="help-block">如: 购买2件，设置10%积分, 成交价格2 * 200= 400， 则购买后获得 40 积分（400*10%）</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">余额返现</label>
                            <div class="col-sm-5">
                                <div class="input-group">
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">元</div>
                                </div>
                                <span class="help-block">会员购物返现, 如果不填写或填写0，则默认为不返现，如果带%则为按成交价格的比例计算返现</span>
                                <span class="help-block">如: 购买2件，设置10 元, 不管成交价格是多少， 则购买后获得20元返现</span>
                                <span class="help-block">如: 购买2件，设置10%元, 成交价格2 * 200= 400， 则购买后获得 40 元返现（400*10%）</span>
                            </div>
                        </div>
                        <div style="margin-left:25px; "><h4>抵扣设置</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">积分抵扣</label>
                            <div class="col-sm-5">
                                <div class="input-group">
                                    <div class="input-group-addon">最多抵扣</div>
                                    <input type="text" class="form-control" placeholder="">
                                    <div class="input-group-addon">元</div>
                                </div>
                                <div class="checkbox-inline">
                                    <input type="checkbox">许多件累计抵扣
                                </div>
                                <span class="help-block">如果设置0，则不支持积分抵扣</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">金额抵扣</label>
                            <div class="col-sm-5">
                                <div class="input-group">
                                    <div class="input-group-addon">最多抵扣</div>
                                    <input type="text" class="form-control" placeholder="">
                                    <div class="input-group-addon">元</div>
                                </div>
                                <span class="help-block">如果设置0，则支持全额抵扣，设置-1 不支持余额抵扣</span>
                            </div>
                        </div>
                        <div style="margin-left:25px; "><h4>重复购买</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">重复购买折扣</label>
                            <div class="col-sm-5">
                                <div class="input-group">
                                    <div class="input-group-addon">最多抵扣</div>
                                    <input type="text" class="form-control" placeholder="">
                                    <div class="input-group-addon">折</div>
                                </div>
                                <span class="help-block">重复购买此商品,享受的折扣</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">持续使用</label>
                            <div class="col-sm-5">
                                <div class="radio-inline">
                                    <input type="radio" name="a">是
                                </div>
                                <div class="radio-inline">
                                    <input type="radio" name="a">否
                                </div>
                                <span class="help-block">购买一次后,以后都使用这个折扣</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">使用条件</label>
                            <div class="col-sm-5">
                                <div class="radio-inline">
                                    <input type="radio" name="a">订单付款后
                                </div>
                                <div class="radio-inline">
                                    <input type="radio" name="a">订单完成后
                                </div>
                                <span class="help-block">重复购买使用条件,是付款后还是完成后 , 默认是付款后</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">可以使用优惠</label>
                            <div class="col-sm-5">
                                <div class="radio-inline">
                                    <input type="radio" name="a">是
                                </div>
                                <div class="radio-inline">
                                    <input type="radio" name="a">否
                                </div>
                                <span class="help-block">重复购买时,是否与其他优惠共享!其他优惠享受后,在使用这个折扣</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="discount">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>会员打折</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-8">
                                <div class="radio-inline">
                                    <input type="radio" checked>统一设置折扣 0.1-10之间
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-5">
                                <div class="panel panel-success">
                                    <div class="panel-heading">
                                        只有当折扣大于0，小于10的情况下才能生效，否则按自身会员等级折扣计算
                                        如果折扣为空或者0，则不设置折扣, 折扣和固定金额都有,则优先使用折扣
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-6">
                                <div class="input-group">
                                    <div class="input-group-addon">普通会员</div>
                                    <input type="number" class="form-control">
                                    <div class="input-group-addon">折 或者 会员价</div>
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">元</div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-6">
                                <div class="input-group">
                                    <div class="input-group-addon">白银会员</div>
                                    <input type="number" class="form-control">
                                    <div class="input-group-addon">折 或者 会员价</div>
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">元</div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-6">
                                <div class="input-group">
                                    <div class="input-group-addon">黄金会员</div>
                                    <input type="number" class="form-control">
                                    <div class="input-group-addon">折 或者 会员价</div>
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">元</div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-6">
                                <div class="input-group">
                                    <div class="input-group-addon">铂金会员</div>
                                    <input type="number" class="form-control">
                                    <div class="input-group-addon">折 或者 会员价</div>
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">元</div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-6">
                                <div class="input-group">
                                    <div class="input-group-addon">砖石会员</div>
                                    <input type="number" class="form-control">
                                    <div class="input-group-addon">折 或者 会员价</div>
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">元</div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="share">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>关注</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">购买强制关注</label>
                            <div class="col-sm-8">
                                <div class="radio-inline">
                                    <input type="radio" name="share">不需关注
                                </div>
                                <div class="radio-inline">
                                    <input type="radio" name="share">必须关注
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">未关注提示</label>
                            <div class="col-sm-8">
                                <input type="text"class="form-control">
                                <span class="help-block">购买商品必须关注，如果未关注，弹出的提示，如果为空默认为“如果您想要购买此商品，需要您关注我们的公众号，点击【确定】关注后再来购买吧~”</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">关注引导</label>
                            <div class="col-sm-8">
                                <input type="text"class="form-control">
                                <span class="help-block">购买商品必须关注，如果未关注，跳转的链接，如果为空默认为系统关注页</span>
                            </div>
                        </div>
                        <div style="margin-left:25px; "><h4>分享</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">分享标题</label>
                            <div class="col-sm-8">
                                <input type="text"class="form-control">
                                <span class="help-block">如果不填写，默认为商品名称</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">分享图片</label>
                            <div class="col-sm-8">
                                <div class="input-group col-sm-12">
                                    <input type="text"class="form-control">
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default">选择图片</button>
                                    </span>
                                </div>
                                <img src="..." alt="无法显示图片" class="img-rounded">
                                <span class="help-block">如果不选择，默认为商品缩略图片</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">分享描述</label>
                            <div class="col-sm-8">
                                <textarea class="col-sm-12" style="height: 200px;"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="notice">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>卖家通知</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">商家通知</label>
                            <div class="col-sm-8">
                                <div class="input-group">
                                    <input type="text"class="form-control">
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default">选择通知人</button>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">通知方式</label>
                            <div class="col-sm-8">
                                <div class="checkbox-inline">
                                    <input type="checkbox">付款通知
                                </div>
                                <div class="checkbox-inline">
                                    <input type="checkbox">买家收货通知
                                </div>
                                <span class="help-block">通知商家方式</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="sell">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>分销</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">是否参与分销</label>
                            <div class="col-sm-8">
                                <div class="radio-inline">
                                    <input type="radio">参与分销
                                </div>
                                <div class="radio-inline">
                                    <input type="radio">不参与分销
                                </div>
                                <span class="help-block">如果不参与分销，则不产生分销佣金</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">分享按钮</label>
                            <div class="col-sm-8">
                                <div class="radio-inline">
                                    <input type="radio">弹出关注提示层
                                </div>
                                <div class="radio-inline">
                                    <input type="radio">跳转至商品海报
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">海报图片</label>
                            <div class="col-sm-8">
                                <div class="input-group col-sm-12">
                                    <input type="text"class="form-control">
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default">选择图片</button>
                                    </span>
                                </div>
                                <img src="..." alt="无法显示图片" class="img-rounded">
                                <span class="help-block">尺寸: 640*640，如果为空默认缩略图片</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">独立规则</label>
                            <div class="col-sm-8">
                                <div class="checkbox-inline">
                                    <input type="checkbox">启用独立佣金比例
                                </div>
                                <span class="help-block">启用独立佣金设置，此商品拥有独自的佣金比例,不受分销商等级比例及默认设置限制</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="verify">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>线下核销</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">支持线下核销</label>
                            <div class="col-sm-8">
                                <div class="radio-inline">
                                    <input type="radio">支持
                                </div>
                                <div class="radio-inline">
                                    <input type="radio">不支持
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">核销类型</label>
                            <div class="col-sm-8">
                                <div class="radio-inline">
                                    <input type="radio">按订单核销
                                </div>
                                <div class="radio-inline">
                                    <input type="radio">按次核销
                                </div>
                                <div class="radio-inline">
                                    <input type="radio">按消费码核销
                                </div>
                                <span class="help-block">按订单核销： 不管够买多少 一次核销完成</span>
                                <span class="help-block">按次核销： 一个消费码使用多次（购买的数量）</span>
                                <span class="help-block">按消费码核销： 多个消费码 一次核销一个</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">自动使用期限</label>
                            <div class="col-sm-8">
                                <div class="input-group">
                                    <input type="text" class="form-control">
                                    <div class="input-group-addon">天</div>
                                </div>
                                <span class="help-block">商品购买X天后自动使用，自动使用后无法退款，设置为0则没有限制。</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">核销门店选择</label>
                            <div class="col-sm-8">
                                <div class="input-group">
                                    <input type="text" class="form-control">
                                    <div class="input-group-btn">
                                        <button type="button" class="btn btn-default">选择门店</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="diyform">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>自定义表单</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-8">
                                <div class="panel panel-danger">
                                    <div class="panel-heading">警告：当模板中已经添加数据后切换自定义表单模板有可能导致无法使用！</div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">自定义表单形式</label>
                            <div class="col-sm-6">
                                <div class="radio-inline">
                                    <input type="radio">关闭
                                </div>
                                <div class="radio-inline">
                                    <input type="radio">自定义
                                </div>
                                <div class="radio-inline">
                                    <input type="radio">使用模板
                                </div>
                                <div class="dropdown col-sm-4" style="float: right">
                                    <select class="form-control">
                                        <option selected>--选择自定义表单--</option>
                                        <option>商户入住表单</option>
                                        <option>欣五加民宿正在火爆招商中</option>
                                        <option>农居订单</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="detaildiy">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>店铺信息</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">快速选择</label>
                            <div class="col-sm-8">
                                <select class="form-control">
                                    <option selected>--快速选择--</option>
                                    <option>1</option>
                                    <option>2</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">店铺LOGO</label>
                            <div class="col-sm-8">
                                <div class="input-group">
                                    <input type="text" class="form-control">
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-primary">选择图片</button>
                                    </span>
                                </div>
                                <img src="" alt="" class="img-rounded">
                                <span class="help-block">建议尺寸: 100 * 100 ，或正方型图片</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">店铺名称</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control">
                                <span class="help-block">如果不填写，系统默认选择小店或商城名称</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">店铺描述</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control">
                                <span class="help-block">如果不填写，系统默认选择小店或商城描述</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">全部商品</label>
                            <div class="col-sm-6">
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" placeholder="按钮名称">
                                </div>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control"placeholder="按钮完整链接">
                                </div>
                                <span class="help-block">如果不填写，系统默认"全部商品"及"默认的全部商品链接"</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">进店逛逛</label>
                            <div class="col-sm-6">
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" placeholder="按钮名称">
                                </div>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control"placeholder="按钮完整链接">
                                </div>
                                <span class="help-block">如果不填写，系统默认"进店逛逛"及"默认的小店或商城链接"</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div role="tabpanel" class="tab-pane fade" id="diypage">
            <div class="panel panel-default mt-20">
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        <input style="display: none" name="id" value="">
                        <input style="display: none" name="uniacid" value="1">
                        <div style="margin-left:25px; "><h4>自定义模板</h4></div>
                        <div class="form-group">
                            <label class="control-label col-sm-2"></label>
                            <div class="col-sm-8">
                                <div class="panel panel-danger">
                                    <div class="panel-heading">警告：当模板中已经添加数据后切换自定义表单模板有可能导致无法使用！</div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">自定义模板</label>
                            <div class="col-sm-8">
                                <select class="form-control">
                                    <option selected>请选择商品详情页面自定义模板</option>
                                    <option>商品详情</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-4">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <a class="btn btn-default" href="" role="button">返回列表</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>

<script>
    var ue1 = UE.getEditor('editor1');
    var ue2 = UE.getEditor('editor2',{
        "isShow":false
    });
    $('.make-switch').bootstrapSwitch({
        onText:"开",
        offText:"关",
        onColor:"primary",
        offColor:"primary",
        size:"small",
        onSwitchChange:function (e,state) {
            if(state){
                ue2.setShow();
            }else {
                ue2.setHide();
            }
        }
    });

    $("input:not('.make-switch')").iCheck({
        labelHover : false,
        cursor : true,
        checkboxClass : 'icheckbox_square-blue',
        radioClass : 'iradio_square-blue',
        increaseArea : '20%'
    });
    $(".addParam").on("click",function (e) {
        str="<div class='form-group'>" +
            "<label class='control-label col-sm-2'></label>" +
            "<div class='col-sm-8'>" +
            "<input type='text' class='col-sm-4'>" +
            "<input type='text' class='col-sm-4 col-sm-offset-2'>" +
            "<div  class='remove btn btn-default'>" +
            "<span class='glyphicon glyphicon-remove' aria-hidden='true'></span>" +
            "</div>" +
            "</div>" +
            "</div>"
        $(".param").after(str);
        $(".remove").on("click",function (e) {
            $(this).parents(".form-group").remove();
        });
    });

</script>
</body>
</html>